using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN DanhHieuKhenThuongService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:27/10/2011 56:03:12</para>
	/// <para>Class Name: DanhHieuKhenThuongService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class DanhHieuKhenThuongService : IDanhHieuKhenThuongService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: DanhHieuKhenThuong_ID</para>
		/// <para>Output: DanhHieuKhenThuongEntity</para>
		///</summary>
		public DanhHieuKhenThuongEntity SelectOne(int DanhHieuKhenThuong_ID){
			DanhHieuKhenThuongDAO dao = new DanhHieuKhenThuongDAO();
			return dao.SelectOne(DanhHieuKhenThuong_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectOneByMaDanhHieu</para>
		/// <para>Input: MaDanhHieu</para>
		/// <para>Output: DanhHieuKhenThuongEntity</para>
		///</summary>
		public DanhHieuKhenThuongEntity SelectOneByMaDanhHieu(string MaDanhHieu){
			DanhHieuKhenThuongDAO dao = new DanhHieuKhenThuongDAO();
			return dao.SelectOneByMaDanhHieu(MaDanhHieu);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of DanhHieuKhenThuongEntity</para>
		///</summary>
		public List<DanhHieuKhenThuongEntity> SelectAll(){
			DanhHieuKhenThuongDAO dao = new DanhHieuKhenThuongDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			DanhHieuKhenThuongDAO dao = new DanhHieuKhenThuongDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of DanhHieuKhenThuongEntity</para>
		///</summary>
		public List<DanhHieuKhenThuongEntity> SelectAllFilter(string strFilter){
			DanhHieuKhenThuongDAO dao = new DanhHieuKhenThuongDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			DanhHieuKhenThuongDAO dao = new DanhHieuKhenThuongDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: DanhHieuKhenThuongEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(DanhHieuKhenThuongEntity o){
			DanhHieuKhenThuongDAO dao = new DanhHieuKhenThuongDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Save</para>
		/// <para>Input: DanhHieuKhenThuongEntity</para>
		/// <para>Output: DanhHieuKhenThuongEntity</para>
		///</summary>
		public DanhHieuKhenThuongEntity SaveRet(DanhHieuKhenThuongEntity o){
			DanhHieuKhenThuongDAO dao = new DanhHieuKhenThuongDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of DanhHieuKhenThuongEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<DanhHieuKhenThuongEntity> list){
			DanhHieuKhenThuongDAO dao = new DanhHieuKhenThuongDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of DanhHieuKhenThuongEntity</para>
		/// <para>Output: List of DanhHieuKhenThuongEntity</para>
		///</summary>
		public List<DanhHieuKhenThuongEntity> SaveListRet(List<DanhHieuKhenThuongEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Update</para>
		/// <para>Input: DanhHieuKhenThuongEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(DanhHieuKhenThuongEntity o){
			DanhHieuKhenThuongDAO dao = new DanhHieuKhenThuongDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of DanhHieuKhenThuongEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<DanhHieuKhenThuongEntity> list){
			DanhHieuKhenThuongDAO dao = new DanhHieuKhenThuongDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMaDanhHieu</para>
		/// <para>Input: NewMaDanhHieu,DanhHieuKhenThuong_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMaDanhHieu(string NewMaDanhHieu,int DanhHieuKhenThuong_ID){
			DanhHieuKhenThuongDAO dao = new DanhHieuKhenThuongDAO();
			return dao.UpdateMaDanhHieu(NewMaDanhHieu,DanhHieuKhenThuong_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateTenDanhHieu</para>
		/// <para>Input: NewTenDanhHieu,DanhHieuKhenThuong_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenDanhHieu(string NewTenDanhHieu,int DanhHieuKhenThuong_ID){
			DanhHieuKhenThuongDAO dao = new DanhHieuKhenThuongDAO();
			return dao.UpdateTenDanhHieu(NewTenDanhHieu,DanhHieuKhenThuong_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: UpdateMoTaDanhHieu</para>
		/// <para>Input: NewMoTaDanhHieu,DanhHieuKhenThuong_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateMoTaDanhHieu(string NewMoTaDanhHieu,int DanhHieuKhenThuong_ID){
			DanhHieuKhenThuongDAO dao = new DanhHieuKhenThuongDAO();
			return dao.UpdateMoTaDanhHieu(NewMoTaDanhHieu,DanhHieuKhenThuong_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: Delete</para>
		/// <para>Input: DanhHieuKhenThuongEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(DanhHieuKhenThuongEntity o){
			DanhHieuKhenThuongDAO dao = new DanhHieuKhenThuongDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:27/10/2011 56:03:12</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: DanhHieuKhenThuong_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int DanhHieuKhenThuong_ID){
			DanhHieuKhenThuongDAO dao = new DanhHieuKhenThuongDAO();
			return dao.DeleteByID(DanhHieuKhenThuong_ID);
		}
		#endregion

		#region Select,delete by DanhHieuKhenThuong_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END DanhHieuKhenThuongWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

